import React from 'react'
import CurrencyInput from '../../components/currencyInput'

class CurrencyInputExample extends React.Component {
  constructor(props) {
    super(props)
    this.state = {
      value: ''
    }
  }
  handleOnChange = (value) => {
    this.setState({
      value
    })
  }
  render() {
    return <CurrencyInput value={this.state.value} onChange={this.handleOnChange} style={styles} />
  }
}
const styles = {
  width: '200px',
  textAlign: 'right',
  marginLeft: '30px'
}

export default CurrencyInputExample
